<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: tcpLinux类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../dc/d09/classtcp_linux-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">tcpLinux类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>linux的TCP客户端.使用epoll实现  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a>&gt;</code></p>
<div class="dynheader">
类 tcpLinux 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d65/classtcp_linux__inherit__graph.png" border="0" usemap="#atcp_linux_inherit__map" alt="Inheritance graph"/></div>
<map name="atcp_linux_inherit__map" id="atcp_linux_inherit__map">
<area shape="rect" title="linux的TCP客户端.使用epoll实现" alt="" coords="13,501,166,1072"/>
<area shape="rect" href="../../dd/df6/structitfc_socket.html" title="TCP客户端的接口定义" alt="" coords="5,5,173,453"/>
<area shape="poly" title=" " alt="" coords="92,468,92,502,87,502,87,468"/>
</map>
</div>
<div class="dynheader">
tcpLinux 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d50/classtcp_linux__coll__graph.png" border="0" usemap="#atcp_linux_coll__map" alt="Collaboration graph"/></div>
<map name="atcp_linux_coll__map" id="atcp_linux_coll__map">
<area shape="rect" title="linux的TCP客户端.使用epoll实现" alt="" coords="13,501,166,1072"/>
<area shape="rect" href="../../dd/df6/structitfc_socket.html" title="TCP客户端的接口定义" alt="" coords="5,5,173,453"/>
<area shape="poly" title=" " alt="" coords="92,468,92,502,87,502,87,468"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:acb57b7235f827f07fc7a106e82851d2d" id="r_acb57b7235f827f07fc7a106e82851d2d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acb57b7235f827f07fc7a106e82851d2d">tcpLinux</a> (const std::string &amp;url, uint16_t port)</td></tr>
<tr class="separator:acb57b7235f827f07fc7a106e82851d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a474141c30fd46dd6b7ebc5ce6a49f0bb" id="r_a474141c30fd46dd6b7ebc5ce6a49f0bb"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a474141c30fd46dd6b7ebc5ce6a49f0bb">~tcpLinux</a> ()</td></tr>
<tr class="separator:a474141c30fd46dd6b7ebc5ce6a49f0bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae15a8916f8f5818a48169a2b1b954cb9" id="r_ae15a8916f8f5818a48169a2b1b954cb9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae15a8916f8f5818a48169a2b1b954cb9">connect</a> () final</td></tr>
<tr class="separator:ae15a8916f8f5818a48169a2b1b954cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e5bdf457d17c48c5f299da7f56d5301" id="r_a2e5bdf457d17c48c5f299da7f56d5301"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2e5bdf457d17c48c5f299da7f56d5301">connect</a> (const std::string &amp;url) final</td></tr>
<tr class="memdesc:a2e5bdf457d17c48c5f299da7f56d5301"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个函数处理标准URL连接方式  <br /></td></tr>
<tr class="separator:a2e5bdf457d17c48c5f299da7f56d5301"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35c67ca013889ac2087dbdd8d6ba5405" id="r_a35c67ca013889ac2087dbdd8d6ba5405"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a35c67ca013889ac2087dbdd8d6ba5405">connect</a> (const std::string &amp;url, uint16_t port) final</td></tr>
<tr class="separator:a35c67ca013889ac2087dbdd8d6ba5405"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8428fda3316b6f9e70f686715754068" id="r_af8428fda3316b6f9e70f686715754068"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af8428fda3316b6f9e70f686715754068">send</a> (const uint8_t *data, size_t len) final</td></tr>
<tr class="separator:af8428fda3316b6f9e70f686715754068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af19328b9cd2d6f9370fe19e8650e3c" id="r_a6af19328b9cd2d6f9370fe19e8650e3c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6af19328b9cd2d6f9370fe19e8650e3c">close</a> () final</td></tr>
<tr class="separator:a6af19328b9cd2d6f9370fe19e8650e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88fa6c8569e5bf884fc5280b91cfa0c7" id="r_a88fa6c8569e5bf884fc5280b91cfa0c7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a88fa6c8569e5bf884fc5280b91cfa0c7">onData</a> (std::function&lt; void(const uint8_t *data, size_t len) &gt; fun) final</td></tr>
<tr class="separator:a88fa6c8569e5bf884fc5280b91cfa0c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fc1efa2686056e1ebe0ad0003e579e6" id="r_a3fc1efa2686056e1ebe0ad0003e579e6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3fc1efa2686056e1ebe0ad0003e579e6">onRecv</a> (std::function&lt; void(native_socket sock) &gt; fun) final</td></tr>
<tr class="separator:a3fc1efa2686056e1ebe0ad0003e579e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1ec1ea5d1f0f4e63eba494c4c436d59" id="r_af1ec1ea5d1f0f4e63eba494c4c436d59"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af1ec1ea5d1f0f4e63eba494c4c436d59">run</a> (bool sw) final</td></tr>
<tr class="separator:af1ec1ea5d1f0f4e63eba494c4c436d59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa668c67c4622697407b7129da67373a6" id="r_aa668c67c4622697407b7129da67373a6"><td class="memItemLeft" align="right" valign="top">virtual native_socket&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa668c67c4622697407b7129da67373a6">getHandle</a> () final</td></tr>
<tr class="separator:aa668c67c4622697407b7129da67373a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structitfc_socket"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_structitfc_socket')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../dd/df6/structitfc_socket.html">itfcSocket</a></td></tr>
<tr class="memitem:a69285d052bcea934fb680b5840dba587 inherit pub_methods_structitfc_socket" id="r_a69285d052bcea934fb680b5840dba587"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/df6/structitfc_socket.html#a69285d052bcea934fb680b5840dba587">onRecv</a> (std::function&lt; void(native_socket fd) &gt; fun)=0</td></tr>
<tr class="separator:a69285d052bcea934fb680b5840dba587 inherit pub_methods_structitfc_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a239bf4c19c4484d3ebcda9caff837a60 inherit pub_methods_structitfc_socket" id="r_a239bf4c19c4484d3ebcda9caff837a60"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/df6/structitfc_socket.html#a239bf4c19c4484d3ebcda9caff837a60">onData</a> (std::function&lt; void(const uint8_t *data, size_t len)&gt; fun)=0</td></tr>
<tr class="separator:a239bf4c19c4484d3ebcda9caff837a60 inherit pub_methods_structitfc_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>linux的TCP客户端.使用epoll实现 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2023-9-11 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a> 第 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html#l00019">19</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="acb57b7235f827f07fc7a106e82851d2d" name="acb57b7235f827f07fc7a106e82851d2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb57b7235f827f07fc7a106e82851d2d">&#9670;&#160;</a></span>tcpLinux()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">tcpLinux::tcpLinux </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>port</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00016">16</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d8e/classtcp_linux_acb57b7235f827f07fc7a106e82851d2d_cgraph.png" border="0" usemap="#ade/d8e/classtcp_linux_acb57b7235f827f07fc7a106e82851d2d_cgraph" alt=""/></div>
<map name="ade/d8e/classtcp_linux_acb57b7235f827f07fc7a106e82851d2d_cgraph" id="ade/d8e/classtcp_linux_acb57b7235f827f07fc7a106e82851d2d_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,133,32"/>
<area shape="rect" href="../../de/d8e/classtcp_linux.html#a6af19328b9cd2d6f9370fe19e8650e3c" title=" " alt="" coords="181,5,290,32"/>
<area shape="poly" title=" " alt="" coords="133,16,165,16,165,21,133,21"/>
</map>
</div>

</div>
</div>
<a id="a474141c30fd46dd6b7ebc5ce6a49f0bb" name="a474141c30fd46dd6b7ebc5ce6a49f0bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a474141c30fd46dd6b7ebc5ce6a49f0bb">&#9670;&#160;</a></span>~tcpLinux()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">tcpLinux::~tcpLinux </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00049">49</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a6af19328b9cd2d6f9370fe19e8650e3c" name="a6af19328b9cd2d6f9370fe19e8650e3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6af19328b9cd2d6f9370fe19e8650e3c">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void tcpLinux::close </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#ad2f66521e7eeb5ab6b1c9392da52f4c8">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00109">109</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d8e/classtcp_linux_a6af19328b9cd2d6f9370fe19e8650e3c_icgraph.png" border="0" usemap="#ade/d8e/classtcp_linux_a6af19328b9cd2d6f9370fe19e8650e3c_icgraph" alt=""/></div>
<map name="ade/d8e/classtcp_linux_a6af19328b9cd2d6f9370fe19e8650e3c_icgraph" id="ade/d8e/classtcp_linux_a6af19328b9cd2d6f9370fe19e8650e3c_icgraph">
<area shape="rect" title=" " alt="" coords="181,5,290,32"/>
<area shape="rect" href="../../de/d8e/classtcp_linux.html#acb57b7235f827f07fc7a106e82851d2d" title=" " alt="" coords="5,5,133,32"/>
<area shape="poly" title=" " alt="" coords="165,21,133,21,133,16,165,16"/>
</map>
</div>

</div>
</div>
<a id="ae15a8916f8f5818a48169a2b1b954cb9" name="ae15a8916f8f5818a48169a2b1b954cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae15a8916f8f5818a48169a2b1b954cb9">&#9670;&#160;</a></span>connect() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool tcpLinux::connect </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#a1777749b032759546aec3b01d12e4956">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00054">54</a> 行定义.</p>

</div>
</div>
<a id="a2e5bdf457d17c48c5f299da7f56d5301" name="a2e5bdf457d17c48c5f299da7f56d5301"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e5bdf457d17c48c5f299da7f56d5301">&#9670;&#160;</a></span>connect() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool tcpLinux::connect </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>这个函数处理标准URL连接方式 </p>

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#acb64626726a7c6458504cff01c8b470b">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a> 第 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="a35c67ca013889ac2087dbdd8d6ba5405" name="a35c67ca013889ac2087dbdd8d6ba5405"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35c67ca013889ac2087dbdd8d6ba5405">&#9670;&#160;</a></span>connect() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool tcpLinux::connect </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>port</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#ae54a7448b24a67b20a662592784112f6">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00096">96</a> 行定义.</p>

</div>
</div>
<a id="aa668c67c4622697407b7129da67373a6" name="aa668c67c4622697407b7129da67373a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa668c67c4622697407b7129da67373a6">&#9670;&#160;</a></span>getHandle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual native_socket tcpLinux::getHandle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#a625dcd5ca7cc970bc09450e5c257c572">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a> 第 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<a id="a88fa6c8569e5bf884fc5280b91cfa0c7" name="a88fa6c8569e5bf884fc5280b91cfa0c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88fa6c8569e5bf884fc5280b91cfa0c7">&#9670;&#160;</a></span>onData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void tcpLinux::onData </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(const uint8_t *data, size_t len) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a> 第 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a3fc1efa2686056e1ebe0ad0003e579e6" name="a3fc1efa2686056e1ebe0ad0003e579e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fc1efa2686056e1ebe0ad0003e579e6">&#9670;&#160;</a></span>onRecv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void tcpLinux::onRecv </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(native_socket sock) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a> 第 <a class="el" href="../../d0/d63/tcplinux_8hpp_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="af1ec1ea5d1f0f4e63eba494c4c436d59" name="af1ec1ea5d1f0f4e63eba494c4c436d59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1ec1ea5d1f0f4e63eba494c4c436d59">&#9670;&#160;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void tcpLinux::run </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>sw</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#a40e80971cd347acf37851173c1e6b07a">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00142">142</a> 行定义.</p>

</div>
</div>
<a id="af8428fda3316b6f9e70f686715754068" name="af8428fda3316b6f9e70f686715754068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8428fda3316b6f9e70f686715754068">&#9670;&#160;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t tcpLinux::send </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../dd/df6/structitfc_socket.html#a1769a8c961b5163ce0ee26d1ff4278d1">itfcSocket</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a> 第 <a class="el" href="../../d6/d97/tcplinux_8cpp_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/details/<a class="el" href="../../d0/d63/tcplinux_8hpp_source.html">tcplinux.hpp</a></li>
<li>src/details/<a class="el" href="../../d6/d97/tcplinux_8cpp_source.html">tcplinux.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
